package com.gitee.flwwsg.rpc.transport;

import com.gitee.flwwsg.rpc.transport.command.Command;

import java.util.concurrent.CompletableFuture;

/**
 * 传输命令
 */
public interface Transport {
    /**
     * 发送请求
     * @param request 请求命令
     * @return
     */
    //异步计算
    CompletableFuture<Command> send(Command request);
}
